<include file="__PUBLIC__/_header" />
<link rel="stylesheet" href="__APP_SKIN__css/orderManage.css?v=200" />
<link rel="stylesheet" href="__APP_SKIN__css/newInformation.css?v=200" />
<link rel="stylesheet" href="__APP_SKIN__css/IntegralQuery.css?v=200" />
<script src="__APP_SKIN__js/newInformation.js?v=200" type="text/javascript"></script>
<script src="__APP_SKIN__js/newMessage.js?v=200"></script>
<script src="__APP_SKIN__js/plugin/WdatePicker.js" type="text/javascript"></script>
<body>
<style>
    body{
        background: #fff;;
    }
</style>
<!--头部开始-->
<include file="__PUBLIC__/_nav" />
<!--头部结束-->

<if condition="$data ">
        <div class="searchInfo searchifo3" style="margin-bottom: 20px;" >
            <div class="searchInfo-box"  >
            开始日期:
            <input id="d11" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
            结束日期:
            <input id="d12" type="text" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                <a class="orderso" href="javascript:void(0)">查询</a>
                </div>
        </div>

<div class="Infobox">
    <table border="0" cellspacing="0" cellpadding="0" class="table22" >
        <thead>
        <tr>
            <th>消息类型</th>
            <th>消息名称</th>
            <th>发布时间</th>
        </tr>
        </thead>
        <tbody>
            <volist name="data" id="vo">
                <tr>
                    <td height="35"><a href="#">
                        <if condition="$vo['b_id'] eq 2">
                            <font color="red">重要消息</font>
                            <else /> 普通消息
                        </if>
                    </a></td>
                    <td style="text-align: left"><a href="{:BaseController::_createUrl('index/messagedetail')}/id/{$vo.id}/">{$vo.title|csubstr=0,50}</a>
                        <if condition="$vo.read eq 1">
                            <span style=" margin-left:4px;display: inline-block;border: 1px solid #19b1e3;color:#19b1e3;padding: 4px; border-radius:3px;  ">已读</span>
                            <else/>
                            <span style="margin-left:4px;display: inline-block;border: 1px solid #404040;color:##404040;padding: 4px; border-radius:3px;  ">未读</span>
                        </if>


                    </td>
                    <td>{$vo.insert_dt}</td>
                </tr>
            </volist>
        </tbody>
    </table>
    <div class="page">

        <div>{$pager_html}</div>

    </div>
</div>
    <else/>
    <div class="searchInfo searchifo3" style="height:240px;">  <div style="width:600px;text-align:center;margin: 30px auto;">暂无数据</div></div>
</if>




<div class="footer">
    <!--<p>湘ICP备13004873号-3 Copyright  芙蓉兴盛 2001-2016，All Rights Reserved </p>-->
    <!-- <p>监督热线：400-600-2200 企业QQ：400-6611-001</p>-->
</div>
</body>
<script>
    $(function(){
        $(".orderso").click(function(){
            var starttime=  $("#d11").val();
            var endtime=  $("#d12").val();
            if(!starttime){
                layer.tips('请选择开始时间', '#d11', {
                    tips: 3
                });
                return;
            }
            if(!endtime){
                var href="{:Controller::_createUrl('index/message')}/ordtime/"+starttime;
            }else{
                var href="{:Controller::_createUrl('index/message')}/ordtime/"+starttime+'/ordtime_end/'+endtime;
            }

            window.location.href=href;

        })

        $(".maintop .left .meun a").eq(6).addClass("active");
    })
</script>
</html>
